#ifndef FORM_H
#define FORM_H

#include <QWidget>
#include "QPropertyAnimation"
namespace Ui {
class Form;
}

class Form : public QWidget
{
    Q_OBJECT

public:
    explicit Form(QWidget *parent = nullptr);
    void Seticonandtext(const QString& icon,const QString& text,int id);
    int getid()const;
    void showanimt();
    void changebackground();
    ~Form();
protected:
    void mousePressEvent(QMouseEvent *event);
signals:
    void btClick(int id);
private:
    Ui::Form *ui;
    int pageid;
    QPropertyAnimation* line1;
    QPropertyAnimation* line2;
    QPropertyAnimation* line3;
    QPropertyAnimation* line4;
};

#endif // FORM_H
